package com.liner.animal;

/**
 * 主人类
 */
public class Master {
    void feed(Animal animal) {
        if (animal instanceof Chick){
            animal.eat();
        }

    }
}
